Release 10.1A: OpenEdge Data Management:
Database Administration
Two-phase commit case study
This case study illustrates the process of resolving a limbo transaction. It involves two databases,
sports1andsports2, located on separate machines,mach1andmach2, respectively. Each database has two-phase commit enabled and each has a server running against it. The coordinator database issports1.Suppose that you start a client process on
mach1against thesports1database and then connect to thesports2database using this command:
After connecting, you try to run a distributed transaction. While running this procedure, the client process is halted by a system error, and the following messages appear:
The message indicates that a limbo transaction might have occurred. You must determine whether a limbo transaction did occur, then resolve it.
You start PROMON against
sports1, choose T (Transaction Control), and choose 1 (Display all entries). This screen appears, indicating that there are no limbo transactions onsports1:
If PROMON failed to run against
sports1, it indicates that the server also crashed and you must use PROUTIL to determine whether any limbo transactions occurred.After determining that no limbo transactions occurred on
sports1, perform the same steps againstsports2. This time, the following screen appears, indicating that a limbo transaction has occurred:
Write down the coordinator’s transaction number (indicated in the Crd-task field). The Coord field indicates that
sports1is the coordinator database for this transaction. Therefore, you must again run PROMON againstsports1. This time, choose C (Coordinator Information). The following screen appears, where you enter the transaction number 61061:
The following screen appears, indicating that the transaction committed:
Since the transaction committed on the coordinator
sports1, you run PROMON againstsports2and choose 1 (Resolve Limbo Transactions). The following screen appears:
Choose 2 (Commit a Limbo Transaction), and this prompt appears:
Type 15 (the user number indicated on the previous screen). The PROMON utility commits the transaction on
sports2and displays this message:
Since there are no more limbo transactions, the situation is resolved and no further action is required.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |